#ifndef  MOTOR_H_
#define  MOTOR_H_

#include "main.h"
#include "FreeRTOS.h"
#include "task.h"

#define left_down  0x01
#define left_up    0x03
#define right_up   0x02
#define right_down 0x04


extern UART_HandleTypeDef huart1;

struct Serial_Number {
uint8_t Serial_Init[5];
float Serial_infomation;
uint8_t Seial_Angel_Num[4];
uint8_t Serial_Enable[6];
uint8_t Serial_Angel[3];
uint8_t serial_Send[13];
uint8_t Serial_turns[8];
uint8_t Serial_Stop[5];
};

void motor_Init(void);
void sit_down(void);
void stand_up(void);
void stru_Init(void);
void motor_DisEnable(void);
void motor_Enable(void);
void walk(void);
void walk_left(void);
void walk_right(void);	
void motor_set(void);

#endif
